package com.h3bpm.web.msg.service.impl;

import com.h3bpm.web.common.utils.SqlUtil;
import com.h3bpm.web.msg.dao.TblSmsDao;
import com.h3bpm.web.msg.service.TblSmsService;
import com.h3bpm.web.organization.dao.UserDao;
import data.DataRow;
import data.DataTable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TblSmsServiceImpl implements TblSmsService {

    @Autowired
    private TblSmsDao tblSmsDao ;

    @Override
    public List<DataRow> getNoSendSmsList() {
        return tblSmsDao.getNoSendSmsList();
    }

    @Override
    public int insertSms(String number, String message) {
        return tblSmsDao.insertSms(number, message);
    }

    @Override
    public int updateSms(String ObjectID) {
        return tblSmsDao.updateSms(ObjectID);
    }

    @Override
    public void clearSms() {
        tblSmsDao.clearSms();
    }
}
